﻿@{
    Layout = "_Main.cshtml";
}
@model SRF.UI.DataSource
@using SRF.UI.Html
@section header{
    @Scripts.Render("~/Scripts/jquery-ui/js/jquery.ui.core.js", "~/Scripts/jquery-ui/js/jquery.ui.widget.js",
        "~/Scripts/jquery-ui/js/jquery.ui.mouse.js", "~/Scripts/jquery-ui/js/jquery.ui.draggable.js",
        "~/Scripts/bootstrap/js/bootstrap-modal.js", "~/Scripts/dialog.js")
    <script type="text/javascript">
        $(function () {
            if ($(".grid tbody tr").length == 0) {
                var colCount = $(".grid thead tr th").length;
                var emptyTr = "<tr><td colspan='" + colCount + "' class='empty-info'>没有数据</td></tr>";
                $(".grid tbody").append(emptyTr);
            } 
        })
    </script>
    @RenderSection("header", false)
}
@section toolbar{
    @RenderSection("toolbar", false)
}
@*body*@
@using (Html.BeginForm())
{   
    <div style="margin-top: 0px; margin-bottom: 6px">
@*      <div class="toolbar btn-group" style="margin-right: 5px; float: right;">
            <a class="btn" title="列表"><i class="icon-list"></i></a><a class="btn"
                title="详细"><i class="icon-book"></i></a>
        </div>*@
        @RenderSection("searchbar", false) 
    </div>
    <div>
        @RenderSection("list")
        @if (this.Model.PerPageSize > 0)
        { 
            @Html.PageBar(this.Model)
        }
    </div> 
}